﻿using System.ComponentModel;
using System.Windows;
using SynergyControls;
using SharpDX.XAudio2;

namespace XAudio2Controls
{
    [DisplayName("XAudio2 Filter Control Panel")]
    [Description("Control for an instance of a FilterPanel")]
    [ToolboxItem(true)]
    [TemplatePart(Name = "FilterPanel", Type = typeof(FilterPanel))]
    public class FilterPanel : FiltersPanel
    {
        /// <summary>
        /// Without a SubmixVoice to apply a filter to, this control is useless.
        /// Minimum contructor parameter is a SubmixVoice.
        /// </summary>
        /// <param name="submixVoice">The object that this control will apply filters to.</param>       
        public FilterPanel(SubmixVoice submixVoice)
        {
            Submixer = submixVoice;
            //Filter = desiredFilter;
        } 
      
        public override void OnApplyTemplate()
        {
            base.OnApplyTemplate();
            GetTemplateChildren();           
        }       
       
    }
}
